<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <link rel="icon" href="*{/images/favicon.ico}" type="image/x-icon" />
  <meta http-equiv="P3P" content="CP='NOI NID'">
  <meta http-equiv="_broadcast_from_" Content="1" />
  <script type="text/javascript" src="*{/js/jquery.js}"></script>
  <script type="text/javascript" src="*{/js/func.js}"></script>
  <script type="text/javascript" src="*{/js/base64.js}"></script>
  <title>脚本高级搜索</title>
<style type="text/css">
td,th{
	padding:3px;
}
.search_item{
  margin-top:10px;
  font-size:12px;
}
.search_text {
  width:590px;
  padding-left:5px;
}
.abutton,.abutton:visited{
  text-decoration:none;
  border:solid 1px #a6a6a6;
  color:#000000;
  background:-webkit-linear-gradient(top, #f6f6f6, #dddddd);
  padding-top:3px;
  padding-bottom:3px;
  padding-left:5px;
  padding-right:5px;
  text-align:center;
  font-size:12px;
}
.abutton:hover {
  color:#ffff00;
}
.bt_view_active {
  background-color:#ec0707 !important;
  color:#CCC;
}
</style>
</head>
<body style="margin-left:10px;" _action="N100109">
<input type="hidden" id="max_level" />
<div style="margin-top:10px;margin-bottom:20px;font-size:20px;font-weight:bold;width:100%;text-align:center;">
  脚本高级搜索
</div>
<div style="margin-left:20px;margin-bottom:20px;">
<form name="search_form" id="search_form" action="#" method="POST">
	<div class="search_item">
  		<span>脚本编号：</span><input type="text" autocomplete="off" class="search_text" name="sid" _field="sid" placeholder="请输入脚本开头或者全部的编号（末尾模糊搜索）"/>
    </div>
	<div class="search_item">
  		<span title="">脚本标题：</span><input type="text" autocomplete="off" class="search_text" name="stitle" _field="stitle" placeholder="脚本中文名（支持模糊搜索）"/>
    </div>
	<div class="search_item">
  		<span>传入参数：</span><input type="text" autocomplete="off" class="search_text" name="sinput" _field="sinput" placeholder="脚本传入参数的名字，需要完全匹配"/>
    </div>
	<div class="search_item">
  		<span>父类主键：</span><input type="text" autocomplete="off" class="search_text" name="sparent" _field="sparent" placeholder="脚本类中的父类主键，需要完全匹配"/>
    </div>
	<div class="search_item">
  		<span>引用接口：</span><input type="text" autocomplete="off" class="search_text" name="sinterface" _field="sinterface" placeholder="脚本引用的接口类，需要完全匹配"/>
  </div>
	<div class="search_item">
  		<span>引用脚本：</span><input type="text" autocomplete="off" class="search_text" name="sotherscript" _field="sotherscript" placeholder="引用了指定脚本"/>
    </div>
	<div class="search_item">
  		<span>远程脚本：</span><input type="text" autocomplete="off" class="search_text" name="sroutescript" _field="sroutescript" placeholder="引用了指定远程脚本"/>
    </div>
	<div class="search_item">
  		<span>注册主键：</span><input type="text" autocomplete="off" class="search_text" name="sregister" _field="sregister" placeholder="脚本注册类主键，需要完全匹配"/>
    </div>
	<div class="search_item">
  		<span>源码版本：</span><input type="text" autocomplete="off" class="search_text" name="sver" _field="sver" placeholder="输入时间格式的脚本版本信息的开头部分或全部（末尾模糊搜索）"/>
  </div>
	<div class="search_item">
  		<span>扩展包路径：</span><input type="text" autocomplete="off" class="search_text" name="sextlib" _field="sextlib" placeholder="脚本引用的扩展包路径。输入半角* 标识存在扩展包路径"/>
  </div>
	<div class="search_item">
    [<input type="checkbox" value="1" name="sindcls"       id="sindcls"       _field="sindcls"       class="search_checkbox" title="是否只搜索传统类脚本"            /><label for="sindcls">传统类</label>]
    [<input type="checkbox" value="1" name="slevel"        id="slevel"        _field="slevel"        class="search_checkbox" title="是否只搜索驻留内存的脚本"        /><label for="slevel">驻留内存</label>]
    [<input type="checkbox" value="1" name="sdisabled"     id="sdisabled"     _field="sdisabled"     class="search_checkbox" title="是否只搜索已禁用的脚本"          /><label for="sdisabled">禁用</label>]
    [<input type="checkbox" value="1" name="stran"         id="stran"         _field="stran"         class="search_checkbox" title="是否只搜索事务处理的脚本"        /><label for="stran">事务</label>]
    [<input type="checkbox" value="1" name="ssync"         id="ssync"         _field="ssync"         class="search_checkbox" title="是否只搜索同步处理的脚本"        /><label for="ssync">同步</label>]
    [<input type="checkbox" value="1" name="sstatic"       id="sstatic"       _field="sstatic"       class="search_checkbox" title="是否只搜索静态脚本"              /><label for="sstatic">静态</label>]
    [<input type="checkbox" value="1" name="sroute"        id="sroute"        _field="sroute"        class="search_checkbox" title="是否引用了外部远程脚本"          /><label for="sroute">远程</label>]
    [<input type="checkbox" value="1" name="snolog"        id="snolog"        _field="snolog"        class="search_checkbox" title="是否只搜索已禁用日志输出的脚本"  /><label for="snolog">禁用日志</label>]
    [<input type="checkbox" value="1" name="shasres"       id="shasres"       _field="shasres"       class="search_checkbox" title="是否只输出有返回值的脚本"        /><label for="shasres">有返回值</label>]
    [<input type="checkbox" value="1" name="scluster_run"  id="scluster_run"  _field="scluster_run"  class="search_checkbox" title="仅集群主服务器启动的服务"        /><label for="scluster_run">仅主服务器运行</label>]
    [<input type="checkbox" value="1" name="scluster_call" id="scluster_call" _field="scluster_call" class="search_checkbox" title="仅集群主服务器调用的动作"        /><label for="scluster_call">仅集群调用</label>]
    [<input type="checkbox" value="1" name="serror"        id="serror"        _field="serror"        class="search_checkbox" title="是否只输出存在编译错误的脚本"    /><label for="serror">编译错误</label>]
    [<input type="checkbox" value="1" name="srunerror"     id="srunerror"     _field="srunerror"     class="search_checkbox" title="是否只输出存在运行错误的脚本"    /><label for="srunerror">运行错误</label>]
  </div>
	<div class="search_item">
  		<span>脚本内容：</span><input type="text" class="search_text" name="scontent" autocomplete="off" _field="scontent" placeholder="脚本程序关键字"/>
    </div>
	<div class="search_item" style="margin-top:30px;padding-left:210px;">
  		<a class="abutton" href="#" onclick="javascript:search_form.submit();return false;">搜  索</a>
        &nbsp;
        <a class="abutton" href="#" onclick="javascript:search_form.reset();return false;">重  置</a>
    </div>
</form>
</div>
<div id="model" style="display:none;">
  <div id="script_table">
      <div mark="script_table">
        <div id="table_show_title" style="margin-left:10px;margin-top:30px;font-size:13px;color:#1E90FF;"></div>
        <table style="width;100%;margin-top:3px;margin-left:10px;margin-bottom:10px;font-size:13px;"  border="1" cellpadding="0" cellspacing="0">
          <thead>
              <tr style="font-size:14px;padding:3px;background-color:#808080;color:#FFFFFF;">
                  <th>脚本代码</th>
                  <th>脚本名</th>
                  <th>版本号</th>
                  <th>操作</th>
              </tr>
          </thead>
          <tbody id="tr_area">
            <tr script_line="1" id="tr">
                <td id="script_id" style="text-align:center;"></td>
                <td id="script_title"></td>
                <td id="script_ver"></td>
                <td>
				  <input type="button" id="sbt_look_local" value="查看" style="background-color:#CCFFFF;" onclick="javascript:return showEditScript(this);"/>
                </td>
            </tr>
          </tbody>
        </table>
      </div>
  </div>
  <div id="type_model">
    <div id="type_block" style="margin-top:15px;margin-left:15px;padding-right:5px;margin-bottom:5px;border:solid 1px #c0c0c0;" mark="type_block">
      <div id="type_title_area">
        <div style="float:left;font-size:18px;font-weight:bold;margin-left:3px;line-height:25px;" id="type_title"></div>
        <input type="button" value="隐藏" id="bt_sync_5" style="width:80px;margin-left:20px;background-color:#FFFFCC;color:#000000;" onclick="javascript:hideShow(this);"/>
        <div style="float:left;margin-left:5px;margin-right:5px;font-size:13px;line-height:25px;color:#A0522D;font-weight:bold;" id="type_path"></div>
        <div style="clear:both;"></div>
      </div>
      <div id="type_area"></div>
    </div>
  </div>
</div>
<div id="info_base">
  <div id="info_area"></div>
</div>
<form id="show_edit_form" method="POST" target="_blank" style="display:none;"></form>
<script type="text/javascript">
var UP_VISIT_BTN = null;
/**
 * 点击显示本地脚本内容
 */
function showEditScript(node){
  var nd = $(node);
  if(UP_VISIT_BTN){
    UP_VISIT_BTN.removeClass("bt_view_active");
  }
  nd.addClass("bt_view_active");
  UP_VISIT_BTN = nd;
  var tr = $(node.parentNode.parentNode);
  var scriptId = tr.find("#script_id").text();
  var form = $("#show_edit_form"); //提交表单对象
  form.attr("action","*{/editor/index.htm}&id="+scriptId);
  form[0].submit();
  return true;
}


function hideShow(node){
 var pNode = $(node.parentNode.parentNode);
 node = $(node);
 if(node.attr("is_hide")=="1"){
   //显示
   node.attr("is_hide","0").css("background-color","#FFFFCC").val("隐藏");
   pNode.find("#type_area").show();
 }else{
   //隐藏
   node.attr("is_hide","1").css("background-color","#ff8000").val("显示");
   console.log("kkkkk");
   pNode.find("#type_area").hide();
 }
}
</script>
</body>
</html>